package org.example.web;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author moya
 * @version 1.0.0
 * @Description TODO
 * @createTime 2020/10/14 11:33
 */
@TableName(value = "export_task", autoResultMap = true)
@EqualsAndHashCode(callSuper= false)
@Data
public class ExportTask {


    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    @TableField(value = "tenant_id"
    )
    protected Long tenantId;
    @TableField(value = "instance_id"
    )
    protected Long instanceId;
    @TableField(value = "create_person"
    )
    protected String createPerson;
    @TableField(value = "create_time"
    )
    protected Date createTime;
    @TableField(value = "update_person"
    )
    protected String updatePerson;
    @TableField(value = "update_time"
    )
    protected Date updateTime;
    @TableField(value  = "dr")
    protected Integer dr = 0;

    @TableField(value = "task_name")
    private String taskName;

    @TableField(value = "task_code")
    private String taskCode;

    @TableField(value = "task_params")
    private String taskParams;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "url")
    private String url;


    //任务状态 0=未开始 1=进行中 2=已完成 3=失败
    @TableField(value = "status")
    private Integer status;

    @TableField(value  = "extension")
    private String extension;

}
